how to find marginal distribution